package ui;

import config.SpringConfiguration;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;
import service.IUserService;

/**
 * 模拟客户端
 */
public class TestClient {
    public static void main(String[] args) {
        ApplicationContext context = new AnnotationConfigApplicationContext(SpringConfiguration.class);
        IUserService userService = context.getBean(IUserService.class);
        userService.saveUser();
        userService.updateUser();
    }
}
